package com.jhws.business.owner.bo;

import com.jhws.common.base.bo.BaseBo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "tbl_owner_dim")
@Entity
public class TblOwnerDimBo extends BaseBo {

    /**
     * 序列化
     */
    private static final long serialVersionUID = -611996624361110635L;

    public static final String RESI_GRPID = "3402223969890";
    @Id
    @Column(name = "owner_code")
    private String ownerCode;
    @Column(name = "owner_name")
    private String ownerName;
    @Column(name = "owner_sex")
    private String ownerSex;
    @Column(name = "owner_no")
    private String ownerNo;
    @Column(name = "owner_date")
    private String ownerDate;
    @Column(name = "owner_mob")
    private String ownerMob;
    @Column(name = "room_info")
    private String roomInfo;
    @Column(name = "room_info_num")
    private String roomInfoNum;
    @Column(name = "fing_id")
    private String fingId;
    @Column(name = "card_id")
    private String cardId;
    @Column(name = "comm_code")
    private String commCode;
    @Column(name = "comm_name")
    private String commName;
    @Column(name = "area_code")
    private String areaCode;
    @Column(name = "unit_code")
    private String unitCode;
    @Column(name = "building_code")
    private String buildingCode;
    @Column(name = "room_code")
    private String roomId;
    @Column(name = "sip_acount_id")
    private String sipAcountId;
    @Column(name = "last_modify")
    private String lastModify;
    @Column(name = "lastModifyTimeStamp", columnDefinition = "BIGINT(20) default 1")
    private Long lastModifyTimeStamp = (long) 1;
    @Column(name = "apply_type")
    private int applyType;
    @Column(name = "is_enable", columnDefinition = "INT default 0")
    private int isEnable; //是否启用 0：启用 1：禁止
    @Column(name = "is_synch", columnDefinition = "INT default 0")
    private int isSynch; //是否同步

    public String getLastModify() {
        return lastModify;
    }

    public void setLastModify(String lastModify) {
        this.lastModify = lastModify;
    }

    public Long getLastModifyTimeStamp() {
        return lastModifyTimeStamp;
    }

    public void setLastModifyTimeStamp(Long lastModifyTimeStamp) {
        this.lastModifyTimeStamp = lastModifyTimeStamp;
    }

    public String getSipAcountId() {
        return sipAcountId;
    }

    public void setSipAcountId(String sipAcountId) {
        this.sipAcountId = sipAcountId;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getUnitCode() {
        return unitCode;
    }

    public void setUnitCode(String unitCode) {
        this.unitCode = unitCode;
    }

    public String getBuildingCode() {
        return buildingCode;
    }

    public void setBuildingCode(String buildingCode) {
        this.buildingCode = buildingCode;
    }

    public String getRoomId() {
        return roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    public String getCommCode() {
        return commCode;
    }

    public void setCommCode(String commCode) {
        this.commCode = commCode;
    }

    public String getRoomInfo() {
        return roomInfo;
    }

    public void setRoomInfo(String roomInfo) {
        this.roomInfo = roomInfo;
    }

    public String getFingId() {
        return fingId;
    }

    public void setFingId(String fingId) {
        this.fingId = fingId;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getRoomInfoNum() {
        return roomInfoNum;
    }

    public void setRoomInfoNum(String roomInfoNum) {
        this.roomInfoNum = roomInfoNum;
    }

    public String getCommName() {
        return commName;
    }

    public void setCommName(String commName) {
        this.commName = commName;
    }

    /**
     * @return the ownerCode
     */
    public String getOwnerCode() {
        return ownerCode;
    }

    /**
     * @param ownerCode the ownerCode to set
     */
    public void setOwnerCode(String ownerCode) {
        this.ownerCode = ownerCode;
    }

    /**
     * @return the ownerName
     */
    public String getOwnerName() {
        return ownerName;
    }

    /**
     * @param ownerName the ownerName to set
     */
    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    /**
     * @return the ownerSex
     */
    public String getOwnerSex() {
        return ownerSex;
    }

    /**
     * @param ownerSex the ownerSex to set
     */
    public void setOwnerSex(String ownerSex) {
        this.ownerSex = ownerSex;
    }

    /**
     * @return the ownerNo
     */
    public String getOwnerNo() {
        return ownerNo;
    }

    /**
     * @param ownerNo the ownerNo to set
     */
    public void setOwnerNo(String ownerNo) {
        this.ownerNo = ownerNo;
    }

    /**
     * @return the ownerDate
     */
    public String getOwnerDate() {
        return ownerDate;
    }

    /**
     * @param ownerDate the ownerDate to set
     */
    public void setOwnerDate(String ownerDate) {
        this.ownerDate = ownerDate;
    }

    /**
     * @return the ownerMob
     */
    public String getOwnerMob() {
        return ownerMob;
    }

    /**
     * @param ownerMob the ownerMob to set
     */
    public void setOwnerMob(String ownerMob) {
        this.ownerMob = ownerMob;
    }

    public int getApplyType() {
        return applyType;
    }

    public void setApplyType(int applyType) {
        this.applyType = applyType;
    }

    public int getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(int isEnable) {
        this.isEnable = isEnable;
    }

    public int getIsSynch() {
        return isSynch;
    }

    public void setIsSynch(int isSynch) {
        this.isSynch = isSynch;
    }

    @Override
    public String toString() {
        return "TblOwnerDimBo{" +
                "ownerCode='" + ownerCode + '\'' +
                ", ownerName='" + ownerName + '\'' +
                ", ownerSex='" + ownerSex + '\'' +
                ", ownerNo='" + ownerNo + '\'' +
                ", ownerDate='" + ownerDate + '\'' +
                ", ownerMob='" + ownerMob + '\'' +
                ", roomInfo='" + roomInfo + '\'' +
                ", roomInfoNum='" + roomInfoNum + '\'' +
                ", fingId='" + fingId + '\'' +
                ", cardId='" + cardId + '\'' +
                ", commCode='" + commCode + '\'' +
                ", commName='" + commName + '\'' +
                ", areaCode='" + areaCode + '\'' +
                ", unitCode='" + unitCode + '\'' +
                ", buildingCode='" + buildingCode + '\'' +
                ", roomId='" + roomId + '\'' +
                ", sipAcountId='" + sipAcountId + '\'' +
                ", lastModify='" + lastModify + '\'' +
                ", lastModifyTimeStamp=" + lastModifyTimeStamp +
                ", applyType=" + applyType +
                ", isEnable=" + isEnable +
                ", isSynch=" + isSynch +
                '}';
    }
}
